Socket
Socket
Sign inDemoInstall

@scalecube/routers

Package Overview
Dependencies
Maintainers
7
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalecube/routers

[![Join the chat at https://gitter.im/scalecube-js/Lobby](https://badges.gitter.im/scalecube-js/Lobby.svg)](https://gitter.im/scalecube-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Version published
Weekly downloads
31
increased by675%
Maintainers
7
Weekly downloads
 
Created
Source

Join the chat at https://gitter.im/scalecube-js/Lobby

This is part of scalecube-js project, see more at https://github.com/scalecube/scalecube-js
Full documentation

Index

Index is responsible for picking the right Item from a Item[].

Default

Pick the first available item. This is very good option for monolith (When all the services are one the same microservice instance) applications built with scalecube

RetryRouter

Pick the first available item, Retry if service not found
period- interval between retry, maxRetry- how much retries before giving up
This is the prefer behavior for browsers

RoundRobin

Pick the next item from a list of available items.
This is very common router for servers

FAQs

Package last updated on 24 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc